﻿CREATE TABLE [dbo].[PersonModel]
(
	[ModelId] [uniqueidentifier] DEFAULT newid() NOT NULL, -- FK to Model
	[PersonId] [uniqueidentifier] DEFAULT newid() NOT NULL, -- FK to Person
	[CreatedBy] [uniqueidentifier] NULL, -- FK to Person
    [CreatedOn] [datetime] DEFAULT getdate() NOT NULL

CONSTRAINT PK_PersonModel PRIMARY KEY CLUSTERED 
(
	[ModelId] ASC,
	[PersonId] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
